//
//  QAWebViewController.swift
//  DKE-Album
//
//  Created by 杨东宝 on 2020/7/1.
//  Copyright © 2020 杨东宝. All rights reserved.
//

import UIKit

class QAWebViewController: BaseWebViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
      let btn = UIButton(type: .custom)
      btn.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
      btn.setTitle("我要提问", for: .normal)
        btn.addTarget(self, action: #selector(commitClick(_ :)), for: .touchUpInside)
      btn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
      btn.setTitleColor(UIColor.red, for: .normal)
      btn.sizeToFit()
        btn.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: -10)
      let item = UIBarButtonItem.init(customView: btn)
      self.navigationItem.rightBarButtonItem = item

    }
    @objc func commitClick(_ : UIButton){
    
        
    }
}
